home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / wb / MIA.lha / MIA / Installer / Install-MIA next >
Text File  |  1994-07-15  |  3KB  |  162 lines

  1.  
  2.  
  3. ; This installs Commodore's Installer and AmigaGuide as well as MIA
  4. ; "$VER:Install-MIA  1.0  (05/12/94)"
  5.  
  6.  
  7. ;  Setup Installer variables
  8.  
  9. ( Set  @app-name  "Mass Icon Alter")
  10.  
  11.  
  12. ( Copylib
  13.     ( Prompt    "Updating your system's \"Installer\" program")
  14.     ( Help      "\"Installer\" is Commodore's program that helps developers write "
  15.                 "installation programs.  The version of \"Installer\" that comes "
  16.                 "with MIA will be copied to your system drive if it is newer than "
  17.                 "the version you already have or if the file does not exist on "
  18.                 "your drive.  This will allow other products to use the latest "
  19.                 "version of \"Installer\" from your drive.\n\nIt is NOT a "
  20.                 "necessity to copy this file to your drive."
  21.     )
  22.     ( Source    "Installer/Installer")
  23.     ( Dest      "SYS:Utilities")
  24.     ( Optional  "nofail"  "force"  "askuser")
  25.     ( Confirm)
  26. )
  27.  
  28.  
  29. ; Install AmigaGuide
  30.  
  31. ( Copylib
  32.     ( Source    "AmigaGuide/amigaguide.library")
  33.     ( Dest      "LIBS:")
  34.     ( Optional  "force")
  35. )
  36.  
  37. ( Copylib
  38.     ( Source    "AmigaGuide/WDisplay")
  39.     ( Dest      "SYS:Utilities")
  40.     ( Infos)
  41.     ( Optional  "force")
  42. )
  43.  
  44. ( Copylib
  45.     ( Source    "AmigaGuide/AmigaGuide")
  46.     ( Dest      "SYS:Utilities")
  47.     ( Infos)
  48.     ( Optional  "force")
  49. )
  50.  
  51. ( Copylib
  52.     ( Source    "AmigaGuide/help.guide")
  53.     ( Dest      "S:")
  54.     ( Infos)
  55.     ( Optional  "force")
  56. )
  57.  
  58.  
  59. ; Install MIA
  60.  
  61. ( Set  DEST_DIR  "Work:")
  62.  
  63. ( Set  DEST_DIR
  64.     ( askdir
  65.                 ( prompt   "Where would you like the MIA drawer created?")
  66.                 ( default  DEST_DIR)
  67.                 ( disk)
  68.                 ( help     "Choose the place where you want the MIA drawer created.  "
  69.                            "This drawer will contain the MIA program and help guide."
  70.                 )
  71.                 ( Newpath)
  72.                 ( Disk)
  73.         )
  74. )
  75.  
  76. ( Set  DEST_DIR  ( Tackon  DEST_DIR  "MIA"))
  77.  
  78. ( Message  @app-name " will be installed to \""  DEST_DIR  "\"." )
  79.  
  80. ( Set  @default-dest  DEST_DIR)
  81.  
  82. ( Makedir  DEST_DIR)
  83.  
  84.  
  85. ;  Copy MIA, MIA.guide, and their .info files to destination directory
  86.  
  87. ( Copyfiles
  88.     ( Source    "MIA")
  89.     ( Dest      DEST_DIR)
  90.     ( All)
  91.     ( Infos)
  92.     ( Optional  "force")
  93. )
  94.  
  95. ( ToolType
  96.     ( Dest  ( Tackon  DEST_DIR  "MIA"))
  97.     ( NoPosition)
  98. )
  99.  
  100. ( ToolType
  101.     ( Dest  ( Tackon  DEST_DIR  "MIA.guide"))
  102.     ( NoPosition)
  103. )
  104.  
  105.  
  106. ;  Copy MIA's environment variables to ENVARC:MIA
  107.  
  108. ( Makedir  "ENVARC:MIA")
  109.  
  110. ( Copyfiles
  111.     ( Source    "MIA/MIA.info")
  112.     ( Dest      "ENVARC:MIA")
  113.     ( Newname   "def_AppIcon.info")
  114.     ( Optional  "force")
  115. )
  116.  
  117. ( ToolType
  118.     ( Dest  "ENVARC:MIA/def_AppIcon")
  119.     ( NoPosition)
  120. )
  121.  
  122. ( Copyfiles
  123.     ( Source    "MIA/MIA.info")
  124.     ( Dest      "ENVARC:MIA")
  125.     ( Optional  "force")
  126. )
  127.  
  128. ( ToolType
  129.     ( Dest  "ENVARC:MIA/MIA")
  130.     ( NoPosition)
  131. )
  132.  
  133.  
  134. ;  Copy MIA's environment variables to ENV:MIA
  135.  
  136. ( Copyfiles
  137.     ( Source     "ENVARC:MIA")
  138.     ( Dest       "ENV:MIA")
  139.     ( All)
  140.     ( Infos)
  141. )
  142.  
  143.  
  144. ;  Append to User-Startup
  145.  
  146. ( Startup      "MIA"
  147.     ( Prompt   "The following AmigaDOS commands will be added to your "
  148.                "\"S:user-startup\" file:\n\n\n"
  149.                "assign  MIA:  \"" DEST_DIR "\"\n"
  150.                "path  MIA:  add"
  151.     )
  152.     ( Command  "assign  MIA:  \"" DEST_DIR "\"\n")
  153.     ( Command  "path    MIA:  add")
  154.     ( Help     @startup-help)
  155. )
  156.  
  157.  
  158. ; >DO< what we just appended to User-Startup so user can use MIA >NOW<
  159.  
  160. ( MakeAssign  "MIA"  DEST_DIR)
  161.  
  162.